package com.lagou.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value="lagou-service-code")
public interface CodeFeignClient {
    //调用的请求路径
    @RequestMapping(value = "/code/validate/{email}/{code}",method= RequestMethod.GET)
    public boolean validate(@PathVariable String email, @PathVariable String code);
}
